package edu.langnan.xiaoli.service.impl;

import edu.langnan.xiaoli.constant.XiaoLiConstants;
import edu.langnan.xiaoli.core.domain.PermDO;
import edu.langnan.xiaoli.mapper.PermMapper;
import edu.langnan.xiaoli.service.PermService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cql
 */
@Service
public class PermServiceImpl implements PermService {

    private static final Logger log = LoggerFactory.getLogger(PermService.class);

    @Autowired
    private PermMapper permMapperp;

    @Override
    public List<PermDO> findPermByStudentId(Integer stuId) {
        return permMapperp.findPermByStudentId(stuId, XiaoLiConstants.STUDENT);
    }
}
